package bingfa.entity;

/**
 * Created by xyz on 4/15/15.
 */
public class StatusEnumDecorator implements Status<Integer> {
    private StatusEnum anEnum;

    public StatusEnumDecorator(StatusEnum anEnum) {
        this.anEnum = anEnum;
    }

    @Override
    public Integer getKey() {
        return anEnum.getKey();
    }

    public static Status<Integer> getStatus(StatusEnum theEnum) {
        return new StatusEnumDecorator(theEnum);
    }


}
